﻿using System;
namespace inspect
{
    public class Postion
    {
        //public float x,y,z;
        public float X { get; set; }
        public float Y { get; set; }
        //public float Z = 0;
        private float pR = 0;

        public float R
        {
            get
            { return pR; }
            set
            {
                if (value < 0)
                {
                    pR = value + 360;
                }
                else
                {
                    pR = value;
                }
            }
        }


        public static Postion operator +(Postion pos1, Postion pos2)
        {
            Postion tPos = new Postion();
            tPos.X = pos1.X + pos2.X;
            tPos.Y = pos1.Y + pos2.Y;
            //tPos.Z = pos1.Z + pos2.Z;
            tPos.R = pos1.R + pos2.R;
            return tPos;
        }
    }


    public class MountData
    {

        //int BoardNo; file
        //int UnitNo;
        public int MonutNo;

        public string Name;
        public string CompNo;
        public Postion Pos = new Postion() { };
        //public double X,Y,R;
        //public double R;
        public double radian;//使用mark修正后的弧度
        public int[] Result;
    }
}

